package com.patternsbox.behavioral.state;

import com.patternsbox.ActionTemplate;

public class StateAction extends ActionTemplate {

	public void doAction() {
	      // Setup context in a state
	      Context context = new Context(new ConcreteStateA());
	      // Issue requests, which toggles state
	      context.request();
	      context.request();
	      context.request();
	      context.request();
	}
}
